package com.zjj.springboot.config.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.zjj.springboot.config.bean.PeopleBean;

@RestController
public class Test2Controller {

	@Autowired
	private PeopleBean people;
	
	@RequestMapping("/test2")
	public String test2() {
		return "test2 = " + people.getName() + "：" + people.getAge();
	}
}
